Skip to content

fix/#191 Docker build 실패 버그 수정#192

Merged
LeeHanEum merged 26 commits intodevelopfrom
fix/#191-docker-fail-hotfix
Feb 5, 2025
Merged

fix/#191 Docker build 실패 버그 수정#192
LeeHanEum merged 26 commits intodevelopfrom
fix/#191-docker-fail-hotfix

Conversation

@LeeShinHaeng
Copy link
Copy Markdown
Contributor

Summary

Docker 실패 버그 수정

Tasks

  • Dockerfile 생성
  • CI/CD 빌드 이미지 중복 생성 및 푸시 제거

@LeeShinHaeng LeeShinHaeng added the 🐞bug Something isn't working label Feb 5, 2025
@LeeShinHaeng LeeShinHaeng requested a review from a team February 5, 2025 05:13
@LeeShinHaeng LeeShinHaeng self-assigned this Feb 5, 2025
@LeeShinHaeng LeeShinHaeng linked an issue Feb 5, 2025 that may be closed by this pull request
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Feb 5, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

이 PR에서는 aics-auth 서비스의 Docker 이미지 빌드 및 배포 과정을 간소화합니다. .github/workflows/dev-build-deploy.yml 파일에서 중복된 Docker 이미지 빌드 및 푸시 단계가 제거되고, deploy-to-dev 작업에 각 서비스의 이미지를 pull한 후 detached 모드로 실행하는 명령어가 추가되었습니다. 또한, aics-auth 서비스를 위한 새로운 Dockerfile이 도입되어 Java 애플리케이션 컨테이너 이미지 빌드가 정의되었습니다.

Changes

파일 경로 변경 내용
.github/workflows/.../dev-build-deploy.yml - build-docker-image 작업에서 aics-auth 관련 중복 빌드 및 푸시 단계 제거
- deploy-to-dev 작업에 aics-api, aics-admin, aics-auth 서비스의 detached 모드 실행 명령어 추가
aics-auth/Dockerfile - 새로운 Dockerfile 생성
- openjdk:17-jdk-slim 기반 이미지 사용
- 애플리케이션 JAR 파일 복사 및 java -jar app.jar로 실행 설정

Possibly related PRs

Suggested reviewers

  • LeeHanEum

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 5, 2025

Test Coverage Report

Overall Project 95.7% 🍏

There is no coverage information present for the Files changed

Copy link
Copy Markdown
Member

@LeeHanEum LeeHanEum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

빠른 작업 감사합니다. 코멘트 확인해주세요!

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #192   +/-   ##
==========================================
  Coverage      93.18%   93.18%           
  Complexity       129      129           
==========================================
  Files             48       48           
  Lines            367      367           
  Branches           3        3           
==========================================
  Hits             342      342           
  Misses            21       21           
  Partials           4        4           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a2e8922...a499afd. Read the comment docs.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a2e8922 and a53f99c.

📒 Files selected for processing (2)
  • .github/workflows/dev-build-deploy.yml (1 hunks)
  • aics-auth/Dockerfile (1 hunks)
🧰 Additional context used
🪛 YAMLlint (1.35.1)
.github/workflows/dev-build-deploy.yml

[error] 96-96: trailing spaces

(trailing-spaces)

🔇 Additional comments (4)
aics-auth/Dockerfile (1)

1-4: Dockerfile 기본 구성 및 엔트리포인트 설정 검토
새로 추가된 Dockerfile은 Java 애플리케이션을 위한 컨테이너 이미지를 빌드하는데 필요한 요소들을 올바르게 포함하고 있습니다.

  • FROM openjdk:17-jdk-slim을 사용하여 경량 베이스 이미지를 지정한 점과
  • WORKDIR /appCOPY aics-api/build/libs/*.jar app.jar를 통해 애플리케이션 아티팩트를 컨테이너에 복사한 점,
  • 그리고 ENTRYPOINT ["java", "-jar", "app.jar"]를 통해 애플리케이션 실행 명령을 지정한 점이 모두 적절합니다.
.github/workflows/dev-build-deploy.yml (3)

42-73: 중복된 Docker 이미지 빌드 및 푸시 단계 제거 확인
각 서비스(aics-admin, aics-api, aics-auth)에 대해 단 한 번씩 Docker 이미지 빌드와 태깅, 그리고 푸시가 실행되도록 수정된 것을 확인했습니다. 이는 CI/CD 파이프라인의 중복 작업을 제거하여 빌드 시간을 단축하고 관리 효율성을 높이는 데 도움이 됩니다.


53-57: aics-auth Docker 이미지 빌드 단계 검토
53번부터 57번 라인에서는 aics-auth 서비스의 Docker 이미지를 빌드하고 태그를 지정하는 명령어가 포함되어 있습니다.

  • Dockerfile 경로(-f aics-auth/Dockerfile)가 올바르게 지정되어 있으며,
  • 이미지 태깅도 적절하게 진행되는 것으로 보입니다.

97-99: deploy-to-dev 작업의 Docker Compose up 단계 검토
97번부터 99번 라인에서는 각 서비스(aics-api, aics-admin, aics-auth)를 detached 모드로 실행하여 배포하는 명령어가 추가되었습니다.
명령어 구성이 명확하며, 서비스별로 올바르게 실행될 것으로 보입니다.

🧰 Tools
🪛 YAMLlint (1.35.1)

[error] 99-99: no new line character at the end of file

(new-line-at-end-of-file)

Copy link
Copy Markdown
Member

@LeeHanEum LeeHanEum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dockerfile: No such file 로 인한 Docker build 실패 버그

2 participants